import { NgModule } from '@angular/core';
import { SharedModule } from '@shared';
import { AcademyViewComponent } from './academy/academy-view.component';
import { AcademyListComponent } from './academy/academy-list.component';
import { AcademyDetailComponent } from './academy/academy-detail.component';
import { ProfessionViewComponent } from './profession/profession-view.component';
import { ProfessionListComponent } from './profession/profession-list.component';
import { ProfessionDetailComponent } from './profession/profession-detail.component';
import { ClassViewComponent } from './class/class-view.component';
import { ClassListComponent } from './class/class-list.component';
import { ClassDetailComponent } from './class/class-detail.component';
import { CourseTypeViewComponent } from './course-type/course-type-view.component';
import { CourseTypeListComponent } from './course-type/course-type-list.component';
import { CourseTypeDetailComponent } from './course-type/course-type-detail.component';
import { CourseViewComponent } from './course/course-view.component';
import { CourseListComponent } from './course/course-list.component';
import { CourseDetailComponent } from './course/course-detail.component';

const COMPONENTS = [
  // 学院管理
  AcademyViewComponent,
  AcademyListComponent,
  AcademyDetailComponent,
  // 专业管理
  ProfessionViewComponent,
  ProfessionListComponent,
  ProfessionDetailComponent,
  // 班级管理
  ClassViewComponent,
  ClassListComponent,
  ClassDetailComponent,
  // 课程类型管理
  CourseTypeViewComponent,
  CourseTypeListComponent,
  CourseTypeDetailComponent,
  // 课程管理
  CourseViewComponent,
  CourseListComponent,
  CourseDetailComponent,
];

@NgModule({
  declarations: [...COMPONENTS],
  imports: [SharedModule],
  exports: [...COMPONENTS],
})
export class BaseComponentModule {}
